package com.foruo.learn.designmode.decorator;

/**
 * 测试类
 * @author GaoYuan
 */
public class TestMe {
    public static void main(String[] args){
        //普通的衣服与裤子
        Goods goods = new Dress();
        System.out.println("名称："+goods.getName()+",价格:"+goods.price());

        //进行装饰，红色的衣服与裤子
        goods = new LimitGoods(new Dress());
        System.out.println("名称："+goods.getName()+",价格:"+goods.price());

    }
}
